package com.itheima.controller.utils;

import lombok.Data;

/**
 * className: R
 * description:
 * date: 2023/2/23 0023-PM 6:44:46
 * <p>
 * project: springboot
 * package: com.itheima.controller.utils
 * email: 1085844536@qq.com
 * version:
 *
 * @author WangGuojian
 */
@Data
public class R {
    private Boolean flag;
    private Object data;
    private String msg;

    public R() {
    }

    public R(Boolean flag) {
        this.flag = flag;
    }

    public R(Boolean flag, Object data) {
        this.flag = flag;
        this.data = data;
    }

    public R(Boolean flag, String msg) {
        this.flag = flag;
        this.msg = msg;
    }

    public R(String msg) {
        this.flag = false;
        this.msg = msg;
    }
}
